package org.core.tliaswebmanagement.service;

import org.core.tliaswebmanagement.pojo.Emp;
import org.core.tliaswebmanagement.pojo.EmpQueryParam;
import org.core.tliaswebmanagement.pojo.LoginInfo;
import org.core.tliaswebmanagement.pojo.PageResult;

import java.time.LocalDate;
import java.util.List;

public interface EmpService {
//    PageResult<Emp> page(Integer page, Integer pageSize, String name, Integer gender, LocalDate begin, LocalDate end);
    PageResult<Emp> page(EmpQueryParam  param);

    void save(Emp emp);

    void delete(List<Integer> ids);

    Emp getInfo(Integer id);

    void update(Emp emp);

    LoginInfo login(Emp emp);

    List<Emp> findAll();
}
